package com.liu.wode.mapper;

import com.liu.wode.pojo.Rooms;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface RoomsMapper {
    List<Rooms> queryRoomsList();

    Rooms queryRoomsById(int Rid);

    int sortSum(String  sort);

    List<Rooms> queryRoomsBySort(String sort);

    int addRooms(Rooms room);

    int upRooms(Rooms room);

    int delRooms(int Rid);

    int addSum(int number);

    int reduceSum(int Rid);
}
